<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul>

    </ul>
    <script>
        let arr = ['111','222','333']
        let ul = document.querySelector('ul')
        
        arr.forEach(item=>{
            let li  = document.createElement('li')
            let btn = document.createElement('button')
            li.innerText = item
            btn.innerText = 'delete'
            btn.onclick = ()=>{
                btn.parentElement.remove()
            }
            li.appendChild(btn)
            ul.appendChild(li)
        })
    </script>
</body>
</html>